<template>
  <div>
    <child :message='parentMessage'@Message-sent="handleMessage"></child>
  </div>
</template>

<script  setup>
import child from './child.vue';
const parentMessage='来自父组件的消息';
function handleMessage(message){
  console.log('接受到了子组件的消息'+message);
}
</script>